package com.biconn.bigdata.es.client.config.annontation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.biconn.bigdata.es.client.config.AnalyzedEnum;
import com.biconn.bigdata.es.client.config.StoreEnum;
import com.biconn.bigdata.es.client.config.TypeEnum;

/**
 * Created by Administrator on 2018/8/4.
 */

@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface IndexFileAnnontation {

    public String name() ;

    public TypeEnum type() default TypeEnum.TEXT;
    public StoreEnum store() default StoreEnum.TRUE;
    public AnalyzedEnum index() default  AnalyzedEnum.FALSE;
    public String search_analyzer() default "";
    public String analyzer() default "";
    public AnalyzedEnum similarity() default AnalyzedEnum.classic;

}
